<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="js/Subject - 售楼案例.js"></script>
    <script>
        let sub = new Subject();

        //订阅 - > 登记客户需求和客户的信息
        sub.scribble('A3' , '老王A' , function(){
            console.log(`售楼处的小姐姐正在给${this.type}房源客户 [${this.name}] 微信通知`)
        })
        sub.scribble('A3' , '老李A')
        sub.scribble('A3' , '老刁A')
        sub.scribble('A2' , '小明')
        sub.scribble('A1' , '小张')

    </script>
</body>
</html>